<script type="text/javascript">
    $(function () {
        //加载公司机构下拉框
        $("#htdy_nbgs_id").combotree({
            loadFilter: function (rows) {
                return convert(rows);
            }
        });
    })
</script>
<form id="htdyForm" method="post" enctype="multipart/form-data" fit="true">
    <input name="htdy.id" type="hidden" value="${(htdy.id)!''}"/>
    <table style="width: 100%" class="tb">
        <col width="25%"/>
        <col width="75%"/>
        <tr style="height: 50px">
            <th style="color:#f45212;">合同名称：</th>
            <td>
                <input name="htdy.mc" type="text" style="width:50%;height: 25px;" class="easyui-validatebox input-text"
                       required="true"
                       autocomplete="off" data-options="validType:['length[0,100]']" value="${(htdy.mc)!''}"/>
            </td>
        </tr>
        <tr style="height: 50px">
            <th style="color:#f45212; width:100%;">合同html：</th>
            <td>
                <input id="htdyHtml" name="htdyHtml" type="file" onkeydown="return false;"
                       style="width:50%;height: 25px"/>
            </td>
        </tr>
        <tr style="height: 50px">
            <th  style="color:#f45212;">合同类型：</th>
            <td colspan="3">
                <input id="radio_xsht" type="radio" name="htdy.htlx" value="xsht"
                       checked="checked"/>销售合同
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input id="radio_cght" type="radio" name="htdy.htlx" value="cght"
                       <#if  htdy??&&htdy.htlx?? && htdy.htlx == "cght">checked="checked"</#if> />采购合同
            </td>
        </tr>
        <tr style="height: 50px">
            <th>公司机构：</th>
            <td>
                <input id='htdy_nbgs_id' name="htdy.nbgs.id" type="text" value="${(yhsx.nbgs.id)!''}"
                       class="easyui-combotree input-text" style="width:200px"
                       data-options="url:'${base}/organ/gsjg/gsjg_tree?type=1',panelHeight:'200',editable:'true',lines:'true'"/>
            </td>
        </tr>
        <tr style="height: 50px">
            <th>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</th>
            <td colspan="3">
                <textarea style="width:50%;height: 50px" name="htdy.bz" class="textarea"
                          data-options="validType:['length[0,100]']">${(htdy.bz)!}</textarea>
            </td>
        </tr>
    </table>
</form>
